package com.ruoyi.pos.mapper;

import java.util.List;
import com.ruoyi.pos.domain.RejectOrder;
import com.ruoyi.pos.domain.RejectItem;

/**
 * reject_orderMapper接口
 * 
 * @author wzh
 * @date 2021-05-20
 */
public interface RejectOrderMapper 
{
    /**
     * 查询reject_order
     * 
     * @param id reject_orderID
     * @return reject_order
     */
    public RejectOrder selectRejectOrderById(Long id);

    /**
     * 查询reject_order列表
     * 
     * @param rejectOrder reject_order
     * @return reject_order集合
     */
    public List<RejectOrder> selectRejectOrderList(RejectOrder rejectOrder);

    /**
     * 新增reject_order
     * 
     * @param rejectOrder reject_order
     * @return 结果
     */
    public int insertRejectOrder(RejectOrder rejectOrder);

    /**
     * 修改reject_order
     * 
     * @param rejectOrder reject_order
     * @return 结果
     */
    public int updateRejectOrder(RejectOrder rejectOrder);

    /**
     * 删除reject_order
     * 
     * @param id reject_orderID
     * @return 结果
     */
    public int deleteRejectOrderById(Long id);

    /**
     * 批量删除reject_order
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteRejectOrderByIds(Long[] ids);

    /**
     * 批量删除退货
     * 
     * @param customerIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteRejectItemByIds(Long[] ids);
    
    /**
     * 批量新增退货
     * 
     * @param rejectItemList 退货列表
     * @return 结果
     */
    public int batchRejectItem(List<RejectItem> rejectItemList);
    

    /**
     * 通过reject_orderID删除退货信息
     * 
     * @param roleId 角色ID
     * @return 结果
     */
    public int deleteRejectItemById(Long id);
}
